import {DataTypes} from "sequelize";
import _manager from "./manager.js";
import _msg_01 from "./msg_01.js";
import _msg_02 from "./msg_02.js";
import _msg_03 from "./msg_03.js";
import _msg_04 from "./msg_04.js";
import _msg_05 from "./msg_05.js";
import _msg_06 from "./msg_06.js";
import _msg_07 from "./msg_07.js";
import _msg_08 from "./msg_08.js";
import _msg_09 from "./msg_09.js";
import _update_msg_history from "./update_msg_history.js";
import _update_user_add_msg_history from "./update_user_add_msg_history.js";
import _update_user_base_history from "./update_user_base_history.js";
import _update_user_friend_group_history from "./update_user_friend_group_history.js";
import _update_user_history from "./update_user_history.js";
import _user from "./user.js";
import _user_add_msg from "./user_add_msg.js";
import _user_base from "./user_base.js";
import _user_friend_group from "./user_friend_group.js";
import _user_chat_list from "./user_chat_list.js";
import _captcha from "./captcha.js";
import _group_base_info from './group_base_info.js';
import _group_announce from './group_announce.js';
import _update_group_announce_history from './update_group_announce_history.js';
import _update_group_base_info_history from './update_group_base_info_history.js';


function initModels(sequelize) {
  let manager = _manager(sequelize, DataTypes);
  let msg_01 = _msg_01(sequelize, DataTypes);
  let msg_02 = _msg_02(sequelize, DataTypes);
  let msg_03 = _msg_03(sequelize, DataTypes);
  let msg_04 = _msg_04(sequelize, DataTypes);
  let msg_05 = _msg_05(sequelize, DataTypes);
  let msg_06 = _msg_06(sequelize, DataTypes);
  let msg_07 = _msg_07(sequelize, DataTypes);
  let msg_08 = _msg_08(sequelize, DataTypes);
  let msg_09 = _msg_09(sequelize, DataTypes);
  let update_msg_history = _update_msg_history(sequelize, DataTypes);
  let update_user_add_msg_history = _update_user_add_msg_history(sequelize, DataTypes);
  let update_user_base_history = _update_user_base_history(sequelize, DataTypes);
  let update_user_friend_group_history = _update_user_friend_group_history(sequelize, DataTypes);
  let update_user_history = _update_user_history(sequelize, DataTypes);
  let user = _user(sequelize, DataTypes);
  let user_add_msg = _user_add_msg(sequelize, DataTypes);
  let user_base = _user_base(sequelize, DataTypes);
  let user_friend_group = _user_friend_group(sequelize, DataTypes);
  let user_chat_list = _user_chat_list(sequelize, DataTypes);
  let captcha = _captcha(sequelize, DataTypes);
  let group_base_info = _group_base_info(sequelize, DataTypes);
  let group_announce = _group_announce(sequelize, DataTypes);
  let update_group_announce_history = _update_group_announce_history(sequelize, DataTypes);
  let update_group_base_info_history = _update_group_base_info_history(sequelize, DataTypes);
  manager.sync();
  msg_01.sync();
  msg_02.sync();
  msg_03.sync();
  msg_04.sync();
  msg_05.sync();
  msg_06.sync();
  msg_07.sync();
  msg_08.sync();
  msg_09.sync();
  update_msg_history.sync();
  update_user_add_msg_history.sync();
  update_user_base_history.sync();
  update_user_friend_group_history.sync();
  update_user_history.sync();
  user.sync();
  user_add_msg.sync();
  user_base.sync();
  user_friend_group.sync();
  user_chat_list.sync();
  captcha.sync();
  group_base_info.sync();
  group_announce.sync();
  update_group_announce_history.sync();
  update_group_base_info_history.sync();
  return {
    manager,
    msg_01,
    msg_02,
    msg_03,
    msg_04,
    msg_05,
    msg_06,
    msg_07,
    msg_08,
    msg_09,
    update_msg_history,
    update_user_add_msg_history,
    update_user_base_history,
    update_user_friend_group_history,
    update_user_history,
    user,
    user_add_msg,
    user_base,
    user_friend_group,
    user_chat_list,
    captcha,
  };
};
export default initModels;
